<html>
<head>
    <style>
        body{
            background-image:url("img/bjt.jpg");
            background-repeat: repeat-x;
        }
        .time{
            width:350px;
            height: 25px;
            margin: 7px auto;
         }
    </style>
    <script>
        var mytime = function () {
            var d = new Date();//表明生成一个日期对象
            var year = d.getFullYear();
            var month = d.getMonth();//从0开始
            var date = d.getDate();
            var week = d.getDay();
            var hour = d.getHours();
            var minute = d.getMinutes();
            var second = d.getSeconds();
            var ms = d.getMilliseconds();
            var pv = document.getElementById('time');
            pv.textContent = '时间：星期' + week + ' ' + year + '年' + (month + 1) + '月' + date + '日' + ' '+ hour + ':' + minute + ':' + second;
        };
        window.onload = function () {
           mytime();
            window.setInterval(mytime, 100);
        };
    </script>
</head>
<body>
<iframe name="sinaWeatherTool"
        src="http://weather.news.sina.com.cn/chajian/iframe/weatherStyle1.html?city=%E9%95%BF%E6%B2%99" width="200"
        height="20" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
        <div style='text-align: center'>
                Dxm.
            <p id="time" class="time">时间</p>
        </div>
</body>
</html>